<?xml version="1.0"?>
<bookingrules>
   <rule stop="True" type="Return">
     <action>bookcharging(booking.NextLesson(),Resource.ChargingPeriods)</action>
   </rule>
   <rule>
	 <And condition1="Resource.EnableCharging" condition2="True" operation="Equals" />
	 <And condition1="Resource.Type.ToString()" condition2="Loan" operation="Not" />
     <action>bookcharging(booking.NextLesson(),Resource.ChargingPeriods)</action>
     <action>bookunavailable(booking.PreviousLesson(),-1))</action>
   </rule>
</bookingrules>
